package com.zhangkunhao.notes.entity.Do;


import com.zhangkunhao.notes.annotation.TableField;
import com.zhangkunhao.notes.annotation.TableId;
import com.zhangkunhao.notes.annotation.TableName;


/**
 * 回答
 *
 * @author 20642
 */
@TableName(name = "tb_answer")
public class Answer {
    @TableId(value = "id")
    private Integer id;
    /**
     * 回答的用户的id
     */
    @TableField(value = "answer_user_id")
    private Integer answerUserId;
    private String content;
    @TableField(value = "question_id")
    private Integer questionId;
    @TableField(value = "answer_user_name")
    private String answerUserName;
    @TableField(value = "question_user_id")
    private Integer questionUserId;


    public Answer() {
    }

    public Answer(Integer id, Integer answerUserId, String content, Integer questionId, String answerUserName, Integer questionUserId) {
        this.id = id;
        this.answerUserId = answerUserId;
        this.content = content;
        this.questionId = questionId;
        this.answerUserName = answerUserName;
        this.questionUserId = questionUserId;
    }

    /**
     * 获取
     *
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     *
     * @param id:问题id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     *
     * @return answerUserId
     */
    public Integer getAnswerUserId() {
        return answerUserId;
    }

    /**
     * 设置
     *
     * @param answerUserId:回答的用户id
     */
    public void setAnswerUserId(Integer answerUserId) {
        this.answerUserId = answerUserId;
    }

    /**
     * 获取
     *
     * @return content
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置
     *
     * @param content:回答内容
     */
    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 获取
     *
     * @return questionId
     */
    public Integer getQuestionId() {
        return questionId;
    }

    /**
     * 设置
     *
     * @param questionId：问题id
     */
    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }

    /**
     * 获取
     *
     * @return answerUserName
     */
    public String getAnswerUserName() {
        return answerUserName;
    }

    /**
     * 设置
     *
     * @param answerUserName:回答的用户名
     */
    public void setAnswerUserName(String answerUserName) {
        this.answerUserName = answerUserName;
    }

    /**
     * 获取
     *
     * @return questionUserId
     */
    public Integer getQuestionUserId() {
        return questionUserId;
    }

    /**
     * 设置
     *
     * @param questionUserId：提出问题的id
     */
    public void setQuestionUserId(Integer questionUserId) {
        this.questionUserId = questionUserId;
    }

    @Override
    public String toString() {
        return "Answer{id = " + id + ", answerUserId = " + answerUserId + ", content = " + content + ", questionId = " + questionId + ", answerUserName = " + answerUserName + ", questionUserId = " + questionUserId + "}";
    }
}
